package com.zan.pattern.state.before;

/**
 * @Author Zan
 * @Create 2024/4/27 13:57
 * @Description : 电梯接口
 * @ClassName: ILift
 */
public interface ILift {

    // 定义四个电梯状态的常量
    //开门状态
    public static final int OPENING_STATE = 1;
    //关门状态
    public static final int CLOSING_STATE = 2;
    //运行状态
    public static final int RUNNING_STATE = 3;
    //停止状态
    public static final int STOPPING_STATE = 4;

    // 设置电梯状态的功能
    void setState(int state);

    // 电梯操作功能
    void open();

    void close();

    void run();

    void stop();
}
